<!DOCTYPE html>
<html>
<head>
  <style type="text/css" media="screen">
    div#target {
        animation-name: animation1, animation2;
        animation-duration: 2s;
        animation-timing-function: steps(2);
        background-color: red;
        position: relative;
        width: 100px;
        height: 100px;
    }
    @keyframes animation1 {
        from {
            left: 0px;
            animation-timing-function: linear;
        }       
        to {
            left: 200px;
        }
    }
    @keyframes animation2 {
        from {
            top: 0px;
            animation-timing-function: linear;
        }
        to {
            top: 200px;
        }
    }
  </style>
  <script src="../resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8">
    
    const expectedValues = [
      // [time, element-id, property, expected-value, tolerance]
      [0.5, "target", "left", 50, 5],
      [0.5, "target", "top", 50, 5],
      [1.5, "target", "left", 150, 5],
      [1.5, "target", "top", 150, 5],
    ];
    
    runAnimationTest(expectedValues);
  </script>
</head>
<body>
<p>Tests that per-keyframe timing functions are applied correctly when an element is targeted by multiple animations. The red block should move smoothly from top-left to bottom-right. See <a href="http://crbug.com/288540">crbug.com/288540</a>.</p>
<div id="target"></div>
<div id="result"></div>
</body>
</html>